package com.zhanghe.study.design_pattern.command_pattern;

/**
 * 命令模式
 * @author zh
 * @date 2022/10/13 15:33
 */
public class Main {
    public static void main(String[] args) {
        Invoker invoker = new Invoker();

        Command command = new ConcreteCommand(new Receiver());
        invoker.setCommand(command);

        invoker.runCommand();

    }
}
